<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-supplier_name" class="control-label col-xs-12 col-sm-2">供应商名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier_name" data-rule="required" class="form-control" name="row[supplier_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-supplier_credit_code" class="control-label col-xs-12 col-sm-2">供应商证书号:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" id="c-supplier_credit_code" class="form-control" name="row[supplier_credit_code]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-supplier_credit_pic" class="control-label col-xs-12 col-sm-2">{:__('supplier_credit_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input data-rule="required" id="c-supplier_credit_pic" class="form-control" size="50" name="row[supplier_credit_pic]" type="hidden" value="{$row.supplier_credit_pic}">
                <span><button id="plupload-image" class="btn btn-danger plupload" data-input-id="c-supplier_credit_pic" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-preview-id="p-supplier_credit_pic" data-multiple="true"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-multiple="true" data-mimetype="image/*" data-input-id="c-supplier_credit_pic"><i class="fa fa-list-ul"></i> {:__('Choose')}</button></span>
                <ul class="row list-inline plupload-preview" id="p-supplier_credit_pic"></ul>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-supplier_idcard_code" class="control-label col-xs-12 col-sm-2">供应商身份证号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" id="c-supplier_idcard_code" class="form-control" name="row[supplier_idcard_code]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
    </div>
</div>
</form>